package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDTO;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

public interface WmMaterialService extends IService<WmMaterial> {
    /*
    * 文件上传
    * */
    ResponseResult<WmMaterial> uploadImages(MultipartFile multipartFile);

    /*
    * 素材列表加载
    * */
    ResponseResult<WmMaterial> findList(WmMaterialDTO wmMaterialDTO);
    /*
    * 文件素材删除
    * */
    ResponseResult<WmMaterial> deleteImage(Integer id);
    /*
    * 文件图片收藏与取消收藏
    * */
    ResponseResult<WmMaterial> updateStatus(Integer id,short type);
}
